Ext.define('js.preAppPro.PreliminaryApplicationProceduresPanel', {
    extend: 'Ext.Container',
    id:'PreliminaryApplicationProceduresPanel',
    style: "background-color:#fff;",
    margin:'0 3 0 1',
    config: {
        autoScroll: true,
        border: false,
        layout: {
            type: 'vbox',
            align: 'stretch'
        }
    },
    initComponent: function () {
        let listOne={
            xtype:'panel',
            region: 'center',
            layout: {
                type: 'table',
                columns: 2
            },
            fieldDefaults: {

                allowBlank: false
            },
            frame:true,
            margin:'30 40 20 40',
            id:'listOne',
            autoHeight:true,
            ui: 'threshold1',
            border: false,
            defaults: {width: '50%', msgTarget:'side', height:36,  margin:'0 0 31 0',  msgTarget : 'qtip',},
            items: [
                {
                    xtype: 'radiogroup',
                    fieldLabel: '工程质量监督申请表',
                    labelWidth: 150,
                    id:'quality_status',
                    name:'quality_status',
                    value: this.quality_statusStatusA,
                    width: '80%',
                    columns: 5,
                    vertical: true,
                    items: [
                        { boxLabel: '有', inputValue: '1',margin:'2 0 0 0',id:'quality_statusA'},
                        { boxLabel: '无', inputValue: '0',margin:'2 0 0 20',id:'quality_statusB'}
                    ],
                    listeners :{
                        change:function(group,checked){
                            if(checked.quality_status == 0){
                                Ext.getCmp('quality_subDate').setDisabled(true);
                                Ext.getCmp('quality_no').setDisabled(true);
                                Ext.getCmp('quality_releaseDate').setDisabled(true);
                                Ext.getCmp('quality_subDate').setValue('');
                                Ext.getCmp('quality_no').setValue('');
                                Ext.getCmp('quality_releaseDate').setValue('');
                            }else{
                                Ext.getCmp('quality_subDate').setDisabled(false);
                                Ext.getCmp('quality_no').setDisabled(false);
                                Ext.getCmp('quality_releaseDate').setDisabled(false);
                            }
                        },
                        render:function (value) {
                            var bizVal = value.initialConfig.value;
                            if(bizVal == 0){
                                Ext.getCmp('quality_statusB').setValue(true);
                                Ext.getCmp('quality_subDate').setDisabled(true);
                                Ext.getCmp('quality_no').setDisabled(true);
                                Ext.getCmp('quality_releaseDate').setDisabled(true);
                            }else{
                                Ext.getCmp('quality_statusA').setValue(true);
                            }
                        }
                    }
                },{
                    xtype: 'datefield',
                    editable:false,
                    name:'quality_subDate',
                    id:'quality_subDate',
                    width:'90%',
                    ref:'submission_date',
                    value:this.release_dateA,
                    labelWidth: 160,
                    margin: '0px 0px 31px 51%',
                    fieldLabel: '监督工作计划下达日期',
                    listeners: {
                        change: function (com, newValue, oldValue, eOpts) {//企业ID
                            Ext.getCmp('quality_releaseDate').setMinValue(new Date(newValue));
                            Ext.getCmp('authorize_design_date').setMinValue(new Date(newValue));
                            Ext.getCmp('authorize_construction_employer_date').setMinValue(new Date(newValue));
                            Ext.getCmp('authorize_supervisory_date').setMinValue(new Date(newValue));
                            Ext.getCmp('authorize_survey_date').setMinValue(new Date(newValue));
                            Ext.getCmp('commitment_construction_employer_date').setMinValue(new Date(newValue));
                            Ext.getCmp('commitment_construction_contractor_date').setMinValue(new Date(newValue));
                            Ext.getCmp('commitment_supervisory_date').setMinValue(new Date(newValue));
                            Ext.getCmp('commitment_survey_date').setMinValue(new Date(newValue));
                            Ext.getCmp('commitment_drawing_date').setMinValue(new Date(newValue));
                            Ext.getCmp('authorize_construction_contractor_date').setMinValue(new Date(newValue));
                            Ext.getCmp('authorize_drawing_date').setMinValue(new Date(newValue));
                            Ext.getCmp('authorize_design_date').setMinValue(new Date(newValue));
                            Ext.getCmp('commitment_design_date').setMinValue(new Date(newValue));
                        }
                    }
                },{
                    xtype:'textfield',
                    name:'quality_no',
                    id:'quality_no',
                    ref:'quality_no',
                    labelWidth: 150,
                    value:this.file_noA,
                    width:'80%',
                    fieldLabel: '档案编号'
                }, {
                    xtype: 'datefield',
                    editable:false,
                    name: 'quality_releaseDate',
                    id:'quality_releaseDate',
                    width:'90%',
                    labelWidth: 160,
                    value:this.submission_dateA,
                    margin: '0px 0px 31px 51%',
                    ref: 'release_date',
                    fieldLabel: '监督交底日期',
                    listeners: {
                        change: function (com, newValue, oldValue, eOpts) {//企业ID
                            Ext.getCmp('authorize_design_date').setMaxValue(new Date(newValue));
                            Ext.getCmp('authorize_construction_employer_date').setMaxValue(new Date(newValue));
                            Ext.getCmp('authorize_supervisory_date').setMaxValue(new Date(newValue));
                            Ext.getCmp('authorize_survey_date').setMaxValue(new Date(newValue));
                            Ext.getCmp('commitment_construction_employer_date').setMaxValue(new Date(newValue));
                            Ext.getCmp('commitment_construction_contractor_date').setMaxValue(new Date(newValue));
                            Ext.getCmp('commitment_supervisory_date').setMaxValue(new Date(newValue));
                            Ext.getCmp('commitment_survey_date').setMaxValue(new Date(newValue));
                            Ext.getCmp('commitment_drawing_date').setMaxValue(new Date(newValue));
                            Ext.getCmp('authorize_construction_contractor_date').setMaxValue(new Date(newValue));
                            Ext.getCmp('authorize_drawing_date').setMaxValue(new Date(newValue));
                            Ext.getCmp('authorize_design_date').setMaxValue(new Date(newValue));
                            Ext.getCmp('commitment_design_date').setMaxValue(new Date(newValue));
                        }
                    }
                }]
        }
        let  listTwo = {
            xtype: 'panel',
            height:60,
            width:'65%',
            margin:'21 0 0 0 ',
            html:'<img src="../../img/flag.png" style="width:30px;height:30px;margin-left: 40px;"><span style="margin-left: 10px;color:#ff6d37;font-size:26px;font-weight: normal;position: relative;top: 5px;">授权书</span>'
        };
        let listThree = {
            xtype:'panel',
            region: 'center',
            layout: {
                type: 'table',
                columns: 2
            },
            fieldDefaults: {
                labelWidth: 120,
                allowBlank: false
            },
            frame:true,
            margin:'-10 40 20 40',
            cls:'basicInformationListA',
            id:'listThree',
            autoHeight:true,
            ui: 'threshold1',
            border: false,
            defaults: {width: '50%', msgTarget:'side', height:36,  margin:'0 0 31 0',  msgTarget : 'qtip',},
            items: [
                {
                    xtype: 'radiogroup',
                    fieldLabel: '建设单位',
                    id:'authorize_construction_employer_status',
                    name:'authorize_construction_employer_status',
                    value:this.authorize_construction_employer_statusAA,
                    margin:'30 0 20 0',
                    width: '90%',
                    columns: 5,
                    vertical: true,
                    items: [
                        { boxLabel: '有', inputValue: '1',margin:'2 0 0 0',id:'authorize_construction_employer_statusA'},
                        { boxLabel: '无', inputValue: '0',margin:'2 0 0 20',id:'authorize_construction_employer_statusB'}
                    ],
                    listeners :{
                        change:function(group,checked){
                            if(checked.authorize_construction_employer_status == 0){
                                Ext.getCmp('authorize_construction_employer_no').setDisabled(true);
                                Ext.getCmp('authorize_construction_employer_user').setDisabled(true);
                                Ext.getCmp('authorize_construction_employer_date').setDisabled(true);
                                Ext.getCmp('authorize_construction_employer_no').setValue('');
                                Ext.getCmp('authorize_construction_employer_user').setValue('');
                                Ext.getCmp('authorize_construction_employer_date').setValue('');
                            }else{
                                Ext.getCmp('authorize_construction_employer_no').setDisabled(false);
                                Ext.getCmp('authorize_construction_employer_user').setDisabled(false);
                                Ext.getCmp('authorize_construction_employer_date').setDisabled(false);
                            }
                        },
                        render:function (value) {
                            //问题2解决方案 在渲染时做赋值操作
                            var bizVal = value.initialConfig.value;
                            if(bizVal == 0){
                                Ext.getCmp('authorize_construction_employer_statusB').setValue(true);
                                Ext.getCmp('authorize_construction_employer_no').setDisabled(true);
                                Ext.getCmp('authorize_construction_employer_user').setDisabled(true);
                                Ext.getCmp('authorize_construction_employer_date').setDisabled(true);
                            }else{
                                Ext.getCmp('authorize_construction_employer_statusA').setValue(true);
                            }
                        }
                    }
                },{
                    xtype: 'radiogroup',
                    fieldLabel: '设计单位',
                    id:'authorize_design_status',
                    name:'authorize_design_status',
                    value:this.authorize_design_statusAA,
                    margin: '30 0px 20 51%',
                    width: '80%',
                    columns: 5,
                    vertical: true,
                    items: [
                        { boxLabel: '有',inputValue: '1',margin:'2 0 0 0',id:'authorize_design_statusA'},
                        { boxLabel: '无',inputValue: '0',margin:'2 0 0 20',id:'authorize_design_statusB'}
                    ],
                    listeners :{
                        change:function(group,checked){
                            if(checked.authorize_design_status == 0){
                                Ext.getCmp('authorize_design_no').setDisabled(true);
                                Ext.getCmp('authorize_design_user').setDisabled(true);
                                Ext.getCmp('authorize_design_date').setDisabled(true);
                                Ext.getCmp('authorize_design_no').setValue('');
                                Ext.getCmp('authorize_design_user').setValue('');
                                Ext.getCmp('authorize_design_date').setValue('');
                            }else{
                                Ext.getCmp('authorize_design_no').setDisabled(false);
                                Ext.getCmp('authorize_design_user').setDisabled(false);
                                Ext.getCmp('authorize_design_date').setDisabled(false);
                            }
                        },
                        render:function (value) {
                            //问题2解决方案 在渲染时做赋值操作
                            var bizVal = value.initialConfig.value;
                            if(bizVal == 0){
                                Ext.getCmp('authorize_design_statusB').setValue(true);
                                Ext.getCmp('authorize_design_no').setDisabled(true);
                                Ext.getCmp('authorize_design_user').setDisabled(true);
                                Ext.getCmp('authorize_design_date').setDisabled(true);
                            }else{
                                Ext.getCmp('authorize_design_statusA').setValue(true);

                            }
                        }
                    }
                },{
                    xtype:'textfield',
                    name:'authorize_construction_employer_no',
                    id:'authorize_construction_employer_no',
                    ref:'authorize_construction_employer_no',
                    value:this.authorize_construction_employer_noA,
                    width:'80%',
                    fieldLabel: '档案编号'
                },{
                    xtype:'textfield',
                    name:'authorize_design_no',
                    id:'authorize_design_no',
                    value:this.authorize_design_noA,
                    ref:'authorize_design_no',
                    margin: '0px 0px 31px 51%',
                    width:'90%',
                    fieldLabel: '档案编号'
                },{
                    xtype: 'combobox',
                    name:'authorize_construction_employer_user',
                    id:'authorize_construction_employer_user',
                    width:'80%',
                    value:this.authorize_construction_employer_userA,
                    ref:'website',
                    displayField: 'dataType',
                    valueField: 'value',
                    editable:false,
                    store:  Ext.create('js.store.user.userSelStore',{
                        proxy: {
                            extraParams: {
                                type: 1,
                            },
                        }
                    }),
                    fieldLabel: '接收人员'
                },{
                    xtype: 'combobox',
                    name:'authorize_design_user',
                    id:'authorize_design_user',
                    margin: '0px 0px 31px 51%',
                    value:this.authorize_design_userA,
                    width:'90%',
                    ref:'website',
                    displayField: 'dataType',
                    valueField: 'value',
                    editable:false,
                    store:  Ext.create('js.store.user.userSelStore',{
                        proxy: {
                            extraParams: {
                                type: 1,
                            },
                        }
                    }),
                    fieldLabel: '接收人员'
                },{
                    xtype: 'datefield',
                    editable:false,
                    name:'authorize_construction_employer_date',
                    id:'authorize_construction_employer_date',
                    value:this.authorize_construction_employer_dateA,
                    width:'80%',
                    ref:'fullnameEn',
                    fieldLabel: '接收日期'
                }, {
                    xtype: 'datefield',
                    editable:false,
                    name: 'authorize_design_date',
                    id:'authorize_design_date',
                    value:this.authorize_design_dateA,
                    width: '90%',
                    margin: '0px 0px 31px 51%',
                    ref: 'shortnameEn',
                    fieldLabel: '接收日期'
                },
                {
                    xtype: 'radiogroup',
                    fieldLabel: '施工单位',
                    id:'authorize_construction_contractor_status',
                    name:'authorize_construction_contractor_status',
                    value:this.authorize_construction_contractor_statusAA,
                    margin:'30 0 20 0',
                    width: '90%',
                    columns: 5,
                    vertical: true,
                    items: [
                        { boxLabel: '有', inputValue: '1',margin:'2 0 0 0',id:'authorize_construction_contractor_statusA'},
                        { boxLabel: '无',inputValue: '0',margin:'2 0 0 20',id:'authorize_construction_contractor_statusB'}
                    ],
                    listeners :{
                        change:function(group,checked){
                            if(checked.authorize_construction_contractor_status == 0){
                                Ext.getCmp('authorize_construction_contractor_no').setDisabled(true);
                                Ext.getCmp('authorize_construction_contractor_user').setDisabled(true);
                                Ext.getCmp('authorize_construction_contractor_date').setDisabled(true);
                                Ext.getCmp('authorize_construction_contractor_no').setValue('');
                                Ext.getCmp('authorize_construction_contractor_user').setValue('');
                                Ext.getCmp('authorize_construction_contractor_date').setValue('');
                            }else{
                                Ext.getCmp('authorize_construction_contractor_no').setDisabled(false);
                                Ext.getCmp('authorize_construction_contractor_user').setDisabled(false);
                                Ext.getCmp('authorize_construction_contractor_date').setDisabled(false);
                            }
                        },
                        render:function (value) {
                            //问题2解决方案 在渲染时做赋值操作
                            var bizVal = value.initialConfig.value;
                            if(bizVal == 0){
                                Ext.getCmp('authorize_construction_contractor_statusB').setValue(true);
                                Ext.getCmp('authorize_construction_contractor_no').setDisabled(true);
                                Ext.getCmp('authorize_construction_contractor_user').setDisabled(true);
                                Ext.getCmp('authorize_construction_contractor_date').setDisabled(true);
                            }else{
                                Ext.getCmp('authorize_construction_contractor_statusA').setValue(true);

                            }
                        }
                    }
                },{
                    xtype: 'radiogroup',
                    fieldLabel: '监理单位',
                    id:'authorize_supervisory_status',
                    name:'authorize_supervisory_status',
                    value:this.authorize_supervisory_statusAA,
                    margin: '30px 0px 20px 51%',
                    width: '80%',
                    columns: 5,
                    vertical: true,
                    items: [
                        { boxLabel: '有', inputValue: '1',margin:'2 0 0 0',id:'authorize_supervisory_statusA'},
                        { boxLabel: '无',inputValue: '0',margin:'2 0 0 20',id:'authorize_supervisory_statusB'}
                    ],
                    listeners :{
                        change:function(group,checked){
                            if(checked.authorize_supervisory_status == 0){
                                Ext.getCmp('authorize_supervisory_no').setDisabled(true);
                                Ext.getCmp('authorize_supervisory_user').setDisabled(true);
                                Ext.getCmp('authorize_supervisory_date').setDisabled(true);
                                Ext.getCmp('authorize_supervisory_no').setValue('');
                                Ext.getCmp('authorize_supervisory_user').setValue('');
                                Ext.getCmp('authorize_supervisory_date').setValue('');
                            }else{
                                Ext.getCmp('authorize_supervisory_no').setDisabled(false);
                                Ext.getCmp('authorize_supervisory_user').setDisabled(false);
                                Ext.getCmp('authorize_supervisory_date').setDisabled(false);
                            }
                        },
                        render:function (value) {
                            //问题2解决方案 在渲染时做赋值操作
                            var bizVal = value.initialConfig.value;
                            if(bizVal == 0){
                                Ext.getCmp('authorize_supervisory_statusB').setValue(true);
                                Ext.getCmp('authorize_supervisory_no').setDisabled(true);
                                Ext.getCmp('authorize_supervisory_user').setDisabled(true);
                                Ext.getCmp('authorize_supervisory_date').setDisabled(true);
                            }else{
                                Ext.getCmp('authorize_supervisory_statusA').setValue(true);

                            }
                        }
                    }
                },{
                    xtype:'textfield',
                    name:'authorize_construction_contractor_no',
                    id:'authorize_construction_contractor_no',
                    ref:'authorize_construction_contractor_no',
                    value:this.authorize_construction_contractor_noA,
                    width:'80%',
                    fieldLabel: '档案编号'
                },{
                    xtype:'textfield',
                    name:'authorize_supervisory_no',
                    value:this.authorize_supervisory_noA,
                    id:'authorize_supervisory_no',
                    ref:'authorize_supervisory_no',
                    margin: '0px 0px 31px 51%',
                    width:'90%',
                    fieldLabel: '档案编号'
                },{
                    xtype: 'combobox',
                    name:'authorize_construction_contractor_user',
                    id:'authorize_construction_contractor_user',
                    value:this.authorize_construction_contractor_userA,
                    width:'80%',
                    ref:'website',
                    displayField: 'dataType',
                    valueField: 'value',
                    editable:false,
                    store:  Ext.create('js.store.user.userSelStore',{
                        proxy: {
                            extraParams: {
                                type: 1,
                            },
                        }
                    }),
                    fieldLabel: '接收人员'
                },{
                    xtype: 'combobox',
                    name:'authorize_supervisory_user',
                    id:'authorize_supervisory_user',
                    value:this.authorize_supervisory_userA,
                    width:'90%',
                    editable:false,
                    margin: '0px 0px 31px 51%',
                    ref:'website',
                    displayField: 'dataType',
                    valueField: 'value',
                    store:  Ext.create('js.store.user.userSelStore',{
                        proxy: {
                            extraParams: {
                                type: 1,
                            },
                        }
                    }),
                    fieldLabel: '接收人员'
                },{
                    xtype: 'datefield',
                    editable:false,
                    name:'authorize_construction_contractor_date',
                    id:'authorize_construction_contractor_date',
                    value:this.authorize_construction_contractor_dateA,
                    width:'80%',
                    ref:'fullnameEn',
                    fieldLabel: '接收日期'
                }, {
                    xtype: 'datefield',
                    editable:false,
                    name: 'authorize_supervisory_date',
                    id:'authorize_supervisory_date',
                    width: '90%',
                    value:this.authorize_supervisory_dateA,
                    margin: '0px 0px 31px 51%',
                    ref: 'shortnameEn',
                    fieldLabel: '接收日期'
                }, {
                    xtype: 'radiogroup',
                    fieldLabel: '勘察单位',
                    id:'authorize_survey_status',
                    name:'authorize_survey_status',
                    value:this.authorize_survey_statusAA,
                    margin:'30 0 20 0',
                    width: '90%',
                    columns: 5,
                    vertical: true,
                    items: [
                        { boxLabel: '有', inputValue: '1',margin:'2 0 0 0',id:'authorize_survey_statusA'},
                        { boxLabel: '无',inputValue: '0',margin:'2 0 0 20',id:'authorize_survey_statusB'}
                    ],
                    listeners :{
                        change:function(group,checked){
                            if(checked.authorize_survey_status == 0){
                                Ext.getCmp('authorize_survey_no').setDisabled(true);
                                Ext.getCmp('authorize_survey_user').setDisabled(true);
                                Ext.getCmp('authorize_survey_date').setDisabled(true);
                                Ext.getCmp('authorize_survey_no').setValue('');
                                Ext.getCmp('authorize_survey_user').setValue('');
                                Ext.getCmp('authorize_survey_date').setValue('');
                            }else{
                                Ext.getCmp('authorize_survey_no').setDisabled(false);
                                Ext.getCmp('authorize_survey_user').setDisabled(false);
                                Ext.getCmp('authorize_survey_date').setDisabled(false);
                            }
                        },
                        render:function (value) {
                            //问题2解决方案 在渲染时做赋值操作
                            var bizVal = value.initialConfig.value;
                            if(bizVal == 0){
                                Ext.getCmp('authorize_survey_statusB').setValue(true);
                                Ext.getCmp('authorize_survey_no').setDisabled(true);
                                Ext.getCmp('authorize_survey_user').setDisabled(true);
                                Ext.getCmp('authorize_survey_date').setDisabled(true);
                            }else{
                                Ext.getCmp('authorize_survey_statusA').setValue(true);
                            }
                        }
                    }
                },{
                    xtype: 'radiogroup',
                    fieldLabel: '图审单位',
                    id:'authorize_drawing_status',
                    name:'authorize_drawing_status',
                    value:this.authorize_drawing_statusAA,
                    margin: '30px 0px 20px 51%',
                    width: '80%',
                    columns: 5,
                    vertical: true,
                    items: [
                        { boxLabel: '有', inputValue: '1',margin:'2 0 0 0',id:'authorize_drawing_statusA'},
                        { boxLabel: '无',inputValue: '0',margin:'2 0 0 20',id:'authorize_drawing_statusB'}
                    ],
                    listeners :{
                        change:function(group,checked){
                            if(checked.authorize_drawing_status == 0){
                                Ext.getCmp('authorize_drawing_no').setDisabled(true);
                                Ext.getCmp('authorize_drawing_user').setDisabled(true);
                                Ext.getCmp('authorize_drawing_date').setDisabled(true);
                                Ext.getCmp('authorize_drawing_no').setValue('');
                                Ext.getCmp('authorize_drawing_user').setValue('');
                                Ext.getCmp('authorize_drawing_date').setValue('');
                            }else{
                                Ext.getCmp('authorize_drawing_no').setDisabled(false);
                                Ext.getCmp('authorize_drawing_user').setDisabled(false);
                                Ext.getCmp('authorize_drawing_date').setDisabled(false);
                            }
                        },
                        render:function (value) {
                            //问题2解决方案 在渲染时做赋值操作
                            var bizVal = value.initialConfig.value;
                            if(bizVal == 0){
                                Ext.getCmp('authorize_drawing_statusB').setValue(true);
                                Ext.getCmp('authorize_drawing_no').setDisabled(true);
                                Ext.getCmp('authorize_drawing_user').setDisabled(true);
                                Ext.getCmp('authorize_drawing_date').setDisabled(true);
                            }else{
                                Ext.getCmp('authorize_drawing_statusA').setValue(true);

                            }
                        }
                    }
                },{
                    xtype:'textfield',
                    name:'authorize_survey_no',
                    id:'authorize_survey_no',
                    ref:'shortnameZh',
                    width:'80%',
                    value:this.authorize_survey_noA,
                    fieldLabel: '档案编号'
                },{
                    xtype:'textfield',
                    name:'authorize_drawing_no',
                    id:'authorize_drawing_no',
                    value:this.authorize_drawing_noA,
                    ref:'shortnameZh',
                    width:'90%',
                    margin: '0px 0px 31px 51%',
                    fieldLabel: '档案编号'
                },{
                    xtype: 'combobox',
                    name:'authorize_survey_user',
                    value:this.authorize_survey_userA,
                    id:'authorize_survey_user',
                    width:'80%',
                    ref:'website',
                    displayField: 'dataType',
                    valueField: 'value',
                    editable:false,
                    store:  Ext.create('js.store.user.userSelStore',{
                        proxy: {
                            extraParams: {
                                type: 1,
                            },
                        }
                    }),
                    fieldLabel: '接收人员'
                },{
                    xtype: 'combobox',
                    name:'authorize_drawing_user',
                    value:this.authorize_drawing_userA,
                    id:'authorize_drawing_user',
                    width:'90%',
                    margin: '0px 0px 31px 51%',
                    ref:'website',
                    displayField: 'dataType',
                    valueField: 'value',
                    editable:false,
                    store:  Ext.create('js.store.user.userSelStore',{
                        proxy: {
                            extraParams: {
                                type: 1,
                            },
                        }
                    }),
                    fieldLabel: '接收人员'
                },{
                    xtype: 'datefield',
                    editable:false,
                    name:'authorize_survey_date',
                    id:'authorize_survey_date',
                    value:this.authorize_survey_dateA,
                    width:'80%',

                    ref:'fullnameEn',
                    fieldLabel: '接收日期'
                }, {
                    xtype: 'datefield',
                    editable:false,
                    name: 'authorize_drawing_date',
                    id:'authorize_drawing_date',
                    value:this.authorize_drawing_dateA,
                    width: '90%',
                    margin: '0px 0px 31px 51%',
                    ref: 'shortnameEn',
                    fieldLabel: '接收日期'
                }]
        };
        let  listFour = {
            xtype: 'panel',
            height:60,
            width:'65%',
            margin:'21 0 0 0 ',
            html:'<img src="../../img/flag.png" style="width:30px;height:30px;margin-left: 40px;"><span style="margin-left: 10px;color:#ff6d37;font-size:26px;font-weight: normal;position: relative;top: 5px;">承诺书</span>'
        };
        let listFive = {
            xtype:'panel',
            region: 'center',
            layout: {
                type: 'table',
                columns: 2
            },
            fieldDefaults: {
                labelWidth: 120,
                allowBlank: false
            },
            frame:true,
            margin:'-10 40 20 40',
            cls:'basicInformationListA',
            id:'listFive',
            autoHeight:true,
            ui: 'threshold1',
            border: false,
            defaults: {width: '50%', msgTarget:'side', height:36,  margin:'0 0 31 0',  msgTarget : 'qtip',},
            items: [
                , {
                    xtype: 'radiogroup',
                    fieldLabel: '建设单位',
                    id:'commitment_construction_employer_status',
                    name:'commitment_construction_employer_status',
                    value:this.commitment_construction_employer_statusAA,
                    margin:'30 0 20 0',
                    width: '80%',
                    columns: 5,
                    vertical: true,
                    items: [
                        { boxLabel: '有', inputValue: '1',margin:'2 0 0 0',id:'commitment_construction_employer_statusA'},
                        { boxLabel: '无',inputValue: '0',margin:'2 0 0 20',id:'commitment_construction_employer_statusB'}
                    ],
                    listeners :{
                        change:function(group,checked){
                            if(checked.commitment_construction_employer_status == 0){
                                Ext.getCmp('commitment_construction_employer_no').setDisabled(true);
                                Ext.getCmp('commitment_construction_employer_user').setDisabled(true);
                                Ext.getCmp('commitment_construction_employer_date').setDisabled(true);
                                Ext.getCmp('commitment_construction_employer_no').setValue('');
                                Ext.getCmp('commitment_construction_employer_user').setValue('');
                                Ext.getCmp('commitment_construction_employer_date').setValue('');
                            }else{
                                Ext.getCmp('commitment_construction_employer_no').setDisabled(false);
                                Ext.getCmp('commitment_construction_employer_user').setDisabled(false);
                                Ext.getCmp('commitment_construction_employer_date').setDisabled(false);
                            }
                        },
                        render:function (value) {
                            //问题2解决方案 在渲染时做赋值操作
                            var bizVal = value.initialConfig.value;
                            if(bizVal == 0){
                                Ext.getCmp('commitment_construction_employer_statusB').setValue(true);
                                Ext.getCmp('commitment_construction_employer_no').setDisabled(true);
                                Ext.getCmp('commitment_construction_employer_user').setDisabled(true);
                                Ext.getCmp('commitment_construction_employer_date').setDisabled(true);
                            }else{
                                Ext.getCmp('commitment_construction_employer_statusA').setValue(true);

                            }
                        }
                    }
                },{
                    xtype: 'radiogroup',
                    fieldLabel: '设计单位',
                    id:'commitment_design_status',
                    name:'commitment_design_status',
                    value:this.commitment_design_statusAA,
                    margin:'30 0 20 51',
                    width: '90%',
                    columns: 5,
                    vertical: true,
                    items: [
                        { boxLabel: '有', inputValue: '1',margin:'2 0 0 0',id:'commitment_design_statusA'},
                        { boxLabel: '无',inputValue: '0',margin:'2 0 0 20',id:'commitment_design_statusB'}
                    ],
                    listeners :{
                        change:function(group,checked){
                            if(checked.commitment_design_status == 0){
                                Ext.getCmp('commitment_design_no').setDisabled(true);
                                Ext.getCmp('commitment_design_user').setDisabled(true);
                                Ext.getCmp('commitment_design_date').setDisabled(true);
                                Ext.getCmp('commitment_design_no').setValue('');
                                Ext.getCmp('commitment_design_user').setValue('');
                                Ext.getCmp('commitment_design_date').setValue('');
                            }else{
                                Ext.getCmp('commitment_design_no').setDisabled(false);
                                Ext.getCmp('commitment_design_user').setDisabled(false);
                                Ext.getCmp('commitment_design_date').setDisabled(false);
                            }
                        },
                        render:function (value) {
                            //问题2解决方案 在渲染时做赋值操作
                            var bizVal = value.initialConfig.value;
                            if(bizVal == 0){
                                Ext.getCmp('commitment_design_statusB').setValue(true);
                                Ext.getCmp('commitment_design_no').setDisabled(true);
                                Ext.getCmp('commitment_design_user').setDisabled(true);
                                Ext.getCmp('commitment_design_date').setDisabled(true);
                            }else{
                                Ext.getCmp('commitment_design_statusA').setValue(true);

                            }
                        }
                    }
                },{
                    xtype:'textfield',
                    name:'commitment_construction_employer_no',
                    id:'commitment_construction_employer_no',
                    value:this.commitment_construction_employer_noB,
                    ref:'shortnameZh',
                    width:'80%',
                    fieldLabel: '档案编号'
                },{
                    xtype:'textfield',
                    name:'commitment_design_no',
                    id:'commitment_design_no',
                    value:this.commitment_design_noB,
                    ref:'shortnameZh',
                    margin: '0px 0px 31px 51%',
                    width:'90%',
                    fieldLabel: '档案编号'
                },{
                    xtype: 'combobox',
                    name:'commitment_construction_employer_user',
                    id:'commitment_construction_employer_user',
                    value:this.commitment_construction_employer_userB,
                    width:'80%',
                    ref:'website',
                    displayField: 'dataType',
                    valueField: 'value',
                    editable:false,
                    store:  Ext.create('js.store.user.userSelStore',{
                        proxy: {
                            extraParams: {
                                type: 1,
                            },
                        }
                    }),
                    fieldLabel: '接收人员'
                },{
                    xtype: 'combobox',
                    name:'commitment_design_user',
                    id:'commitment_design_user',
                    value:this.commitment_design_userB,
                    width:'90%',
                    ref:'website',
                    margin: '0px 0px 31px 51%',
                    displayField: 'dataType',
                    valueField: 'value',
                    editable:false,
                    store:  Ext.create('js.store.user.userSelStore',{
                        proxy: {
                            extraParams: {
                                type: 1,
                            },
                        }
                    }),
                    fieldLabel: '接收人员'
                },{
                    xtype: 'datefield',
                    editable:false,
                    name:'commitment_construction_employer_date',
                    id:'commitment_construction_employer_date',
                    value:this.commitment_construction_employer_dateB,
                    width:'80%',
                    ref:'fullnameEn',

                    fieldLabel: '接收日期'
                }, {
                    xtype: 'datefield',
                    editable:false,
                    name: 'commitment_design_date',
                    id:'commitment_design_date',
                    value:this.commitment_design_dateB,
                    width: '90%',
                    margin: '0px 0px 31px 51%',
                    ref: 'shortnameEn',
                    fieldLabel: '接收日期'
                },
                {
                    xtype: 'radiogroup',
                    fieldLabel: '施工单位',
                    id:'commitment_construction_contractor_status',
                    name:'commitment_construction_contractor_status',
                    value:this.commitment_construction_contractor_statusAA,
                    margin:'30 0 20 0',
                    width: '80%',
                    columns: 5,
                    vertical: true,
                    items: [
                        { boxLabel: '有', inputValue: '1',margin:'2 0 0 0',id:'commitment_construction_contractor_statusA'},
                        { boxLabel: '无',inputValue: '0',margin:'2 0 0 20',id:'commitment_construction_contractor_statusB'}
                    ],
                    listeners :{
                        change:function(group,checked){
                            if(checked.commitment_construction_contractor_status == 0){
                                Ext.getCmp('commitment_construction_contractor_no').setDisabled(true);
                                Ext.getCmp('commitment_construction_contractor_user').setDisabled(true);
                                Ext.getCmp('commitment_construction_contractor_date').setDisabled(true);
                                Ext.getCmp('commitment_construction_contractor_no').setValue('');
                                Ext.getCmp('commitment_construction_contractor_user').setValue('');
                                Ext.getCmp('commitment_construction_contractor_date').setValue('');
                            }else{
                                Ext.getCmp('commitment_construction_contractor_no').setDisabled(false);
                                Ext.getCmp('commitment_construction_contractor_user').setDisabled(false);
                                Ext.getCmp('commitment_construction_contractor_date').setDisabled(false);
                            }
                        },
                        render:function (value) {
                            //问题2解决方案 在渲染时做赋值操作
                            var bizVal = value.initialConfig.value;
                            if(bizVal == 0){
                                Ext.getCmp('commitment_construction_contractor_statusB').setValue(true);
                                Ext.getCmp('commitment_construction_contractor_no').setDisabled(true);
                                Ext.getCmp('commitment_construction_contractor_user').setDisabled(true);
                                Ext.getCmp('commitment_construction_contractor_date').setDisabled(true);
                            }else{
                                Ext.getCmp('commitment_construction_contractor_statusA').setValue(true);

                            }
                        }
                    }
                },{
                    xtype: 'radiogroup',
                    fieldLabel: '监理单位',
                    id:'commitment_supervisory_status',
                    name:'commitment_supervisory_status',
                    value:this.commitment_supervisory_statusAA,
                    margin: '30px 0px 20px 51%',
                    width: '90%',
                    columns: 5,
                    vertical: true,
                    items: [
                        { boxLabel: '有', inputValue: '1',margin:'2 0 0 0',id:'commitment_supervisory_statusA'},
                        { boxLabel: '无',inputValue: '0',margin:'2 0 0 20',id:'commitment_supervisory_statusB'}
                    ],
                    listeners :{
                        change:function(group,checked){
                            if(checked.commitment_supervisory_status == 0){
                                Ext.getCmp('commitment_supervisory_no').setDisabled(true);
                                Ext.getCmp('commitment_supervisory_user').setDisabled(true);
                                Ext.getCmp('commitment_supervisory_date').setDisabled(true);
                                Ext.getCmp('commitment_supervisory_no').setValue('');
                                Ext.getCmp('commitment_supervisory_user').setValue('');
                                Ext.getCmp('commitment_supervisory_date').setValue('');
                            }else{
                                Ext.getCmp('commitment_supervisory_no').setDisabled(false);
                                Ext.getCmp('commitment_supervisory_user').setDisabled(false);
                                Ext.getCmp('commitment_supervisory_date').setDisabled(false);
                            }
                        },
                        render:function (value) {
                            //问题2解决方案 在渲染时做赋值操作
                            var bizVal = value.initialConfig.value;
                            if(bizVal == 0){
                                Ext.getCmp('commitment_supervisory_statusB').setValue(true);
                                Ext.getCmp('commitment_supervisory_no').setDisabled(true);
                                Ext.getCmp('commitment_supervisory_user').setDisabled(true);
                                Ext.getCmp('commitment_supervisory_date').setDisabled(true);
                            }else{
                                Ext.getCmp('commitment_supervisory_statusA').setValue(true);

                            }
                        }
                    }
                },{
                    xtype:'textfield',
                    name:'commitment_construction_contractor_no',
                    id:'commitment_construction_contractor_no',
                    value:this.commitment_construction_contractor_noB,
                    ref:'shortnameZh',
                    width:'80%',
                    fieldLabel: '档案编号'
                },{
                    xtype:'textfield',
                    name:'commitment_supervisory_no',
                    id:'commitment_supervisory_no',
                    value:this.commitment_supervisory_noB,
                    ref:'shortnameZh',
                    width:'90%',
                    margin: '0px 0px 31px 51%',
                    fieldLabel: '档案编号'
                },{
                    xtype: 'combobox',
                    name:'commitment_construction_contractor_user',
                    id:'commitment_construction_contractor_user',
                    value:this.commitment_construction_contractor_userB,
                    width:'80%',
                    ref:'website',
                    displayField: 'dataType',
                    valueField: 'value',
                    editable:false,
                    store:  Ext.create('js.store.user.userSelStore',{
                        proxy: {
                            extraParams: {
                                type: 1,
                            },
                        }
                    }),
                    fieldLabel: '接收人员'
                },{
                    xtype: 'combobox',
                    name:'commitment_supervisory_user',
                    id:'commitment_supervisory_user',
                    value:this.commitment_supervisory_userB,
                    width:'90%',
                    ref:'website',
                    displayField: 'dataType',
                    margin: '0px 0px 31px 51%',
                    valueField: 'value',
                    editable:false,
                    store:  Ext.create('js.store.user.userSelStore',{
                        proxy: {
                            extraParams: {
                                type: 1,
                            },
                        }
                    }),
                    fieldLabel: '接收人员'
                },{
                    xtype: 'datefield',
                    editable:false,
                    name:'commitment_construction_contractor_date',
                    id:'commitment_construction_contractor_date',
                    value:this.commitment_construction_contractor_dateB,
                    width:'80%',

                    ref:'fullnameEn',
                    fieldLabel: '接收日期'
                }, {
                    xtype: 'datefield',
                    editable:false,
                    name: 'commitment_supervisory_date',
                    id:'commitment_supervisory_date',
                    value:this.commitment_supervisory_dateB,
                    width: '90%',
                    margin: '0px 0px 31px 51%',
                    ref: 'shortnameEn',
                    fieldLabel: '接收日期'
                }, {
                    xtype: 'radiogroup',
                    fieldLabel: '勘察单位',
                    id:'commitment_survey_status',
                    name:'commitment_survey_status',
                    value:this.commitment_survey_statusAA,
                    margin:'30 0 20 0',
                    width: '80%',
                    columns: 5,
                    vertical: true,
                    items: [
                        { boxLabel: '有', inputValue: '1',margin:'2 0 0 0',id:'commitment_survey_statusA'},
                        { boxLabel: '无',inputValue: '0',margin:'2 0 0 20',id:'commitment_survey_statusB'}
                    ],
                        listeners :{
                            change:function(group,checked){
                                if(checked == 0){
                                    Ext.getCmp('commitment_survey_no').setDisabled(true);
                                    Ext.getCmp('commitment_survey_user').setDisabled(true);
                                    Ext.getCmp('commitment_survey_date').setDisabled(true);
                                    Ext.getCmp('commitment_survey_no').setValue('');
                                    Ext.getCmp('commitment_survey_user').setValue('');
                                    Ext.getCmp('commitment_survey_date').setValue('');
                                }else{
                                    Ext.getCmp('commitment_survey_no').setDisabled(false);
                                    Ext.getCmp('commitment_survey_user').setDisabled(false);
                                    Ext.getCmp('commitment_survey_date').setDisabled(false);
                                }
                            },
                            render:function (value) {
                                //问题2解决方案 在渲染时做赋值操作
                                var bizVal = value.initialConfig.value;
                                if(bizVal == 0){
                                    Ext.getCmp('commitment_survey_statusB').setValue(true);
                                    Ext.getCmp('commitment_survey_no').setDisabled(true);
                                    Ext.getCmp('commitment_survey_user').setDisabled(true);
                                    Ext.getCmp('commitment_survey_date').setDisabled(true);
                                }else{
                                    Ext.getCmp('commitment_survey_statusA').setValue(true);
                                }
                            }
                    }
                },{
                    xtype: 'radiogroup',
                    fieldLabel: '图审单位',
                    id:'commitment_drawing_status',
                    name:'commitment_drawing_status',
                    value:this.commitment_drawing_statusAA,
                    margin: '30px 0px 20px 51%',
                    width: '90%',
                    columns: 5,
                    vertical: true,
                    items: [
                        { boxLabel: '有', inputValue: '1',margin:'2 0 0 0',id:'commitment_drawing_statusA'},
                        { boxLabel: '无',inputValue: '0',margin:'2 0 0 20',id:'commitment_drawing_statusB'}
                    ],
                    listeners :{
                        change:function(group,checked){
                            if(checked.commitment_drawing_status == 0){
                                Ext.getCmp('commitment_drawing_no').setDisabled(true);
                                Ext.getCmp('commitment_drawing_user').setDisabled(true);
                                Ext.getCmp('commitment_drawing_date').setDisabled(true);
                                Ext.getCmp('commitment_drawing_no').setValue('');
                                Ext.getCmp('commitment_drawing_user').setValue('');
                                Ext.getCmp('commitment_drawing_date').setValue('');
                            }else{
                                Ext.getCmp('commitment_drawing_no').setDisabled(false);
                                Ext.getCmp('commitment_drawing_user').setDisabled(false);
                                Ext.getCmp('commitment_drawing_date').setDisabled(false);
                            }
                        },
                        'render':function (value) {
                            //问题2解决方案 在渲染时做赋值操作
                            var bizVal = value.initialConfig.value;
                            if(bizVal == 0){
                                Ext.getCmp('commitment_drawing_statusB').setValue(true);
                                Ext.getCmp('commitment_drawing_no').setDisabled(true);
                                Ext.getCmp('commitment_drawing_user').setDisabled(true);
                                Ext.getCmp('commitment_drawing_date').setDisabled(true);
                            }else{
                                Ext.getCmp('commitment_drawing_statusA').setValue(true);

                            }
                        }
                    }
                },{
                    xtype:'textfield',
                    name:'commitment_survey_no',
                    id:'commitment_survey_no',
                    value:this.commitment_survey_noB,
                    ref:'shortnameZh',
                    width:'80%',
                    fieldLabel: '档案编号'
                },{
                    xtype:'textfield',
                    name:'commitment_drawing_no',
                    id:'commitment_drawing_no',
                    value:this.commitment_drawing_noB,
                    ref:'shortnameZh',
                    width:'90%',
                    margin: '0px 0px 31px 51%',
                    fieldLabel: '档案编号'
                },{
                    xtype: 'combobox',
                    name:'commitment_survey_user',
                    id:'commitment_survey_user',
                    value:this.commitment_survey_userB,
                    width:'80%',
                    ref:'website',
                    displayField: 'dataType',
                    valueField: 'value',
                    editable:false,
                    store:  Ext.create('js.store.user.userSelStore',{
                        proxy: {
                            extraParams: {
                                type: 1,
                            },
                        }
                    }),
                    fieldLabel: '接收人员'
                },{
                    xtype: 'combobox',
                    name:'commitment_drawing_user',
                    id:'commitment_drawing_user',
                    value:this.commitment_drawing_userB,
                    width:'90%',
                    margin: '0px 0px 31px 51%',
                    ref:'website',
                    displayField: 'dataType',
                    valueField: 'value',
                    editable:false,
                    store:  Ext.create('js.store.user.userSelStore',{
                        proxy: {
                            extraParams: {
                                type: 1,
                            },
                        }
                    }),
                    fieldLabel: '接收人员'
                },{
                    xtype: 'datefield',
                    editable:false,
                    name:'commitment_survey_date',
                    value:this.commitment_survey_dateB,
                    id:'commitment_survey_date',
                    width:'80%',
                    ref:'fullnameEn',

                    fieldLabel: '接收日期'
                }, {
                    xtype: 'datefield',
                    editable:false,
                    name: 'commitment_drawing_date',
                    id:'commitment_drawing_date',
                    value:this.commitment_drawing_dateB,
                    width: '90%',

                    margin: '0px 0px 31px 51%',
                    ref: 'shortnameEn',
                    fieldLabel: '接收日期'
                }]
        }
        let buttonList={
            xtype: 'panel',
            margin:'0 40 30 40',
            layout: {
                type: 'hbox',
                align: 'middle ',
                pack: 'center'
            },
            items: [{
                xtype: 'button',
                scala: 'medium',
                cls:'button-Intelligent-sensor',
                text: '重置',
                margin:'0 100% 0 -50%',
                width: '10%',
                height:'40',
                handler: this.btnresetclick,
                scope: this,
                toOpera: 0
            }, {
                xtype: 'button',
                scala: 'medium',
                cls:'button-Intelligent-sensor',
                text: '保存修改',
                width: '10%',
                height:'40',
                handler: this.toPage,
                scope: this,
            }
            ]

        };
        let basicInformationList= new Ext.FormPanel({
            id:'basicInformationList',
            items: [
                listOne,
                listTwo,
                listThree,
                listFour,
                listFive,
                buttonList
            ]
        });


        this.items = [basicInformationList];
        this.on('render', this.show);
        this.callParent(arguments);
    },
    show:function(engineering_id){
        Ext.Ajax.request({
            url: '/getUserInfoBySession',
            method: "POST",
            async: true,  //异步调用AJAX
            success: function (response, opts) {
                let result = Ext.decode(response.responseText);
                if(result.data==true){
                }else{
                    /*质量监督*/
                    let quality_noA = Ext.getCmp('quality_no').value;
                    let quality_subDateA = Ext.getCmp('quality_subDate').value;
                    let quality_releaseDateA = Ext.getCmp('quality_releaseDate').value;
                    if(quality_noA!==""){
                        Ext.getCmp('quality_no').setReadOnly(true);
                    }else{
                        Ext.getCmp('quality_no').setReadOnly(false);
                    }
                    if(quality_subDateA!==""&&quality_subDateA!=='0000-00-00'){
                        Ext.getCmp('quality_subDate').setReadOnly(true);
                    }else{
                        Ext.getCmp('quality_subDate').setReadOnly(false);
                    }
                    if(quality_releaseDateA!==""&&quality_releaseDateA!=='0000-00-00'){
                        Ext.getCmp('quality_releaseDate').setReadOnly(true);
                    }else{
                        Ext.getCmp('quality_releaseDate').setReadOnly(false);
                    }

                    /*授权书*/
                    /*建筑单位*/
                    let authorize_construction_employer_noA = Ext.getCmp('authorize_construction_employer_no').value;
                    let authorize_construction_employer_userA = Ext.getCmp('authorize_construction_employer_user').value;
                    let authorize_construction_employer_dateA = Ext.getCmp('authorize_construction_employer_date').value;
                    if(authorize_construction_employer_noA!==""){
                        Ext.getCmp('authorize_construction_employer_no').setReadOnly(true);
                    }else{
                        Ext.getCmp('authorize_construction_employer_no').setReadOnly(false);
                    }
                    if(authorize_construction_employer_userA!==""&&authorize_construction_employer_userA!==0&&authorize_construction_employer_userA!==null){
                        Ext.getCmp('authorize_construction_employer_user').setReadOnly(true);
                    }else{
                        Ext.getCmp('authorize_construction_employer_user').setReadOnly(false);
                    }
                    if(authorize_construction_employer_dateA!==""&&authorize_construction_employer_dateA!=='0000-00-00'){
                        Ext.getCmp('authorize_construction_employer_date').setReadOnly(true);
                    }else{
                        Ext.getCmp('authorize_construction_employer_date').setReadOnly(false);
                    }
                    /*设计单位*/
                    let authorize_design_noA = Ext.getCmp('authorize_design_no').value;
                    let authorize_design_userA = Ext.getCmp('authorize_design_user').value;
                    let authorize_design_dateA = Ext.getCmp('authorize_design_date').value;
                    if(authorize_design_noA!==""){
                        Ext.getCmp('authorize_design_no').setReadOnly(true);
                    }else{
                        Ext.getCmp('authorize_design_no').setReadOnly(false);
                    }
                    if(authorize_design_userA!==""&&authorize_design_userA!==0&&authorize_design_userA!==null){
                        Ext.getCmp('authorize_design_user').setReadOnly(true);
                    }else{
                        Ext.getCmp('authorize_design_user').setReadOnly(false);
                    }
                    if(authorize_design_dateA!==""&&authorize_design_dateA!=='0000-00-00'){
                        Ext.getCmp('authorize_design_date').setReadOnly(true);
                    }else{
                        Ext.getCmp('authorize_design_date').setReadOnly(false);
                    }
                    /*施工单位*/
                    let authorize_construction_contractor_noA = Ext.getCmp('authorize_construction_contractor_no').value;
                    let authorize_construction_contractor_userA = Ext.getCmp('authorize_construction_contractor_user').value;
                    let authorize_construction_contractor_dateA = Ext.getCmp('authorize_construction_contractor_date').value;
                    if(authorize_construction_contractor_noA!==""){
                        Ext.getCmp('authorize_construction_contractor_no').setReadOnly(true);
                    }else{
                        Ext.getCmp('authorize_construction_contractor_no').setReadOnly(false);
                    }
                    if(authorize_construction_contractor_userA!==""&&authorize_construction_contractor_userA!==0&&authorize_construction_contractor_userA!==null){
                        Ext.getCmp('authorize_construction_contractor_user').setReadOnly(true);
                    }else{
                        Ext.getCmp('authorize_construction_contractor_user').setReadOnly(false);
                    }
                    if(authorize_construction_contractor_dateA!==""&&authorize_construction_contractor_dateA!=='0000-00-00'){
                        Ext.getCmp('authorize_construction_contractor_date').setReadOnly(true);
                    }else{
                        Ext.getCmp('authorize_construction_contractor_date').setReadOnly(false);
                    }
                    /*监理单位*/
                    let authorize_supervisory_noA = Ext.getCmp('authorize_supervisory_no').value;
                    let authorize_supervisory_userA = Ext.getCmp('authorize_supervisory_user').value;
                    let authorize_supervisory_dateA = Ext.getCmp('authorize_supervisory_date').value;
                    if(authorize_supervisory_noA!==""){
                        Ext.getCmp('authorize_supervisory_no').setReadOnly(true);
                    }else{
                        Ext.getCmp('authorize_supervisory_no').setReadOnly(false);
                    }
                    if(authorize_supervisory_userA!==""&&authorize_supervisory_userA!==0&&authorize_supervisory_userA!==null){
                        Ext.getCmp('authorize_supervisory_user').setReadOnly(true);
                    }else{
                        Ext.getCmp('authorize_supervisory_user').setReadOnly(false);
                    }
                    if(authorize_supervisory_dateA!==""&&authorize_supervisory_dateA!=='0000-00-00'){
                        Ext.getCmp('authorize_supervisory_date').setReadOnly(true);
                    }else{
                        Ext.getCmp('authorize_supervisory_date').setReadOnly(false);
                    }
                    /*勘察单位*/
                    let authorize_survey_noA = Ext.getCmp('authorize_survey_no').value;
                    let authorize_survey_userA = Ext.getCmp('authorize_survey_user').value;
                    let authorize_survey_dateA = Ext.getCmp('authorize_survey_date').value;
                    if(authorize_survey_noA!==""){
                        Ext.getCmp('authorize_survey_no').setReadOnly(true);
                    }else{
                        Ext.getCmp('authorize_survey_no').setReadOnly(false);
                    }
                    if(authorize_survey_userA!==""&&authorize_survey_userA!==0&&authorize_survey_userA!==null){
                        Ext.getCmp('authorize_survey_user').setReadOnly(true);
                    }else{
                        Ext.getCmp('authorize_survey_user').setReadOnly(false);
                    }
                    if(authorize_survey_dateA!==""&&authorize_survey_dateA!=='0000-00-00'){
                        Ext.getCmp('authorize_survey_date').setReadOnly(true);
                    }else{
                        Ext.getCmp('authorize_survey_date').setReadOnly(false);
                    }
                    /*图审单位*/
                    let authorize_drawing_noA = Ext.getCmp('authorize_drawing_no').value;
                    let authorize_drawing_userA = Ext.getCmp('authorize_drawing_user').value;
                    let authorize_drawing_dateA = Ext.getCmp('authorize_drawing_date').value;
                    if(authorize_drawing_noA!==""){
                        Ext.getCmp('authorize_drawing_no').setReadOnly(true);
                    }else{
                        Ext.getCmp('authorize_drawing_no').setReadOnly(false);
                    }
                    if(authorize_drawing_userA!==""&&authorize_drawing_userA!==0&&authorize_drawing_userA!==null){
                        Ext.getCmp('authorize_drawing_user').setReadOnly(true);
                    }else{
                        Ext.getCmp('authorize_drawing_user').setReadOnly(false);
                    }
                    if(authorize_drawing_dateA!==""&&authorize_drawing_dateA!=='0000-00-00'){
                        Ext.getCmp('authorize_drawing_date').setReadOnly(true);
                    }else {
                        Ext.getCmp('authorize_drawing_date').setReadOnly(false);
                    }
                    /*承诺书*/
                    /*建筑单位*/
                    let commitment_construction_employer_noA = Ext.getCmp('commitment_construction_employer_no').value;
                    let commitment_construction_employer_userA = Ext.getCmp('commitment_construction_employer_user').value;
                    let commitment_construction_employer_dateA = Ext.getCmp('commitment_construction_employer_date').value;
                    if(commitment_construction_employer_noA!==""){
                        Ext.getCmp('commitment_construction_employer_no').setReadOnly(true);
                    }else{
                        Ext.getCmp('commitment_construction_employer_no').setReadOnly(false);
                    }
                    if(commitment_construction_employer_userA!==""&&commitment_construction_employer_userA!==0&&commitment_construction_employer_userA!==null){
                        Ext.getCmp('commitment_construction_employer_user').setReadOnly(true);
                    }else{
                        Ext.getCmp('commitment_construction_employer_user').setReadOnly(false);
                    }
                    if(commitment_construction_employer_dateA!==""&&commitment_construction_employer_dateA!=='0000-00-00'){
                        Ext.getCmp('commitment_construction_employer_date').setReadOnly(true);
                    }else {
                        Ext.getCmp('commitment_construction_employer_date').setReadOnly(false);
                    }
                    /*设计单位*/
                    let commitment_design_noA = Ext.getCmp('commitment_design_no').value;
                    let commitment_design_userA = Ext.getCmp('commitment_design_user').value;
                    let commitment_design_dateA = Ext.getCmp('commitment_design_date').value;
                    if(commitment_design_noA!==""){
                        Ext.getCmp('commitment_design_no').setReadOnly(true);
                    }else{
                        Ext.getCmp('commitment_design_no').setReadOnly(false);
                    }
                    if(commitment_design_userA!==""&&commitment_design_userA!==0&&commitment_design_userA!==null){
                        Ext.getCmp('commitment_design_user').setReadOnly(true);
                    }else{
                        Ext.getCmp('commitment_design_user').setReadOnly(false);
                    }
                    if(commitment_design_dateA!==""&&commitment_design_dateA!=='0000-00-00'){
                        Ext.getCmp('commitment_design_date').setReadOnly(true);
                    }else {
                        Ext.getCmp('commitment_design_date').setReadOnly(false);
                    }
                    /*施工单位*/
                    let commitment_construction_contractor_noA = Ext.getCmp('commitment_construction_contractor_no').value;
                    let commitment_construction_contractor_userA = Ext.getCmp('commitment_construction_contractor_user').value;
                    let commitment_construction_contractor_dateA = Ext.getCmp('commitment_construction_contractor_date').value;
                    if(commitment_construction_contractor_noA!==""){
                        Ext.getCmp('commitment_construction_contractor_no').setReadOnly(true);
                    }else{
                        Ext.getCmp('commitment_construction_contractor_no').setReadOnly(false);
                    }
                    if(commitment_construction_contractor_userA!==""&&commitment_construction_contractor_userA!==0&&commitment_construction_contractor_userA!==null){
                        Ext.getCmp('commitment_construction_contractor_user').setReadOnly(true);
                    }else{
                        Ext.getCmp('commitment_construction_contractor_user').setReadOnly(false);
                    }
                    if(commitment_construction_contractor_dateA!==""&&commitment_construction_contractor_dateA!=='0000-00-00'){
                        Ext.getCmp('commitment_construction_contractor_date').setReadOnly(true);
                    }else {
                        Ext.getCmp('commitment_construction_contractor_date').setReadOnly(false);
                    }
                    /*监理单位*/
                    let commitment_supervisory_noA = Ext.getCmp('commitment_supervisory_no').value;
                    let commitment_supervisory_userA = Ext.getCmp('commitment_supervisory_user').value;
                    let commitment_supervisory_dateA = Ext.getCmp('commitment_supervisory_date').value;
                    if(commitment_supervisory_noA!==""){
                        Ext.getCmp('commitment_supervisory_no').setReadOnly(true);
                    }else{
                        Ext.getCmp('commitment_supervisory_no').setReadOnly(false);
                    }
                    if(commitment_supervisory_userA!==""&&commitment_supervisory_userA!==0&&commitment_supervisory_userA!==null){
                        Ext.getCmp('commitment_supervisory_user').setReadOnly(true);
                    }else{
                        Ext.getCmp('commitment_supervisory_user').setReadOnly(false);
                    }
                    if(commitment_supervisory_dateA!==""&&commitment_supervisory_dateA!=='0000-00-00'){
                        Ext.getCmp('commitment_supervisory_date').setReadOnly(true);
                    }else {
                        Ext.getCmp('commitment_supervisory_date').setReadOnly(false);
                    }
                    /*勘察单位*/
                    let commitment_survey_noA = Ext.getCmp('commitment_survey_no').value;
                    let commitment_survey_userA = Ext.getCmp('commitment_survey_user').value;
                    let commitment_survey_dateA = Ext.getCmp('commitment_survey_date').value;
                    if(commitment_survey_noA!==""){
                        Ext.getCmp('commitment_survey_no').setReadOnly(true);
                    }else{
                        Ext.getCmp('commitment_survey_no').setReadOnly(false);
                    }
                    if(commitment_survey_userA!==""&&commitment_survey_userA!==0&&commitment_survey_userA!==null){
                        Ext.getCmp('commitment_survey_user').setReadOnly(true);
                    }else{
                        Ext.getCmp('commitment_survey_user').setReadOnly(false);
                    }
                    if(commitment_survey_dateA!==""&&commitment_survey_dateA!=='0000-00-00'){
                        Ext.getCmp('commitment_survey_date').setReadOnly(true);
                    }else {
                        Ext.getCmp('commitment_survey_date').setReadOnly(false);
                    }
                    /*图审单位*/
                    let commitment_drawing_noA = Ext.getCmp('commitment_drawing_no').value;
                    let commitment_drawing_userA = Ext.getCmp('commitment_drawing_user').value;
                    let commitment_drawing_dateA = Ext.getCmp('commitment_drawing_date').value;
                    if(commitment_drawing_noA!==""){
                        Ext.getCmp('commitment_drawing_no').setReadOnly(true);
                    }else{
                        Ext.getCmp('commitment_drawing_no').setReadOnly(false);
                    }
                    if(commitment_drawing_userA!==""&&commitment_drawing_userA!==0&&commitment_drawing_userA!==null){
                        Ext.getCmp('commitment_drawing_user').setReadOnly(true);
                    }else{
                        Ext.getCmp('commitment_drawing_user').setReadOnly(false);
                    }
                    if(commitment_drawing_dateA!==""&&commitment_drawing_dateA!=='0000-00-00'){
                        Ext.getCmp('commitment_drawing_date').setReadOnly(true);
                    }else {
                        Ext.getCmp('commitment_drawing_date').setReadOnly(false);
                    }
                }

            }
        });
    },
    btnresetclick: function(){
        /*质量监督*/
         Ext.getCmp('quality_no').setValue("");
        Ext.getCmp('quality_subDate').setValue("");
        Ext.getCmp('quality_releaseDate').setValue("");
        Ext.getCmp('quality_status').setValue(1);



        /*授权书*/
        /*建筑单位*/
        Ext.getCmp('authorize_construction_employer_no').setValue("");
        Ext.getCmp('authorize_construction_employer_user').setValue("");
        Ext.getCmp('authorize_construction_employer_date').setValue("");
        /*设计单位*/
        Ext.getCmp('authorize_design_no').setValue("");
        Ext.getCmp('authorize_design_user').setValue("");
        Ext.getCmp('authorize_design_date').setValue("");
        /*施工单位*/
        Ext.getCmp('authorize_construction_contractor_no').setValue("");
        Ext.getCmp('authorize_construction_contractor_user').setValue("");
        Ext.getCmp('authorize_construction_contractor_date').setValue("");
        /*监理单位*/
        Ext.getCmp('authorize_supervisory_no').setValue("");
        Ext.getCmp('authorize_supervisory_user').setValue("");
        Ext.getCmp('authorize_supervisory_date').setValue("");
        /*勘察单位*/
        Ext.getCmp('authorize_survey_no').setValue("");
        Ext.getCmp('authorize_survey_user').setValue("");
        Ext.getCmp('authorize_survey_date').setValue("");
        /*图审单位*/
        Ext.getCmp('authorize_drawing_no').setValue("");
        Ext.getCmp('authorize_drawing_user').setValue("");
        Ext.getCmp('authorize_drawing_date').setValue("");


        /*承诺书*/
        /*建筑单位*/
        Ext.getCmp('commitment_construction_employer_no').setValue("");
        Ext.getCmp('commitment_construction_employer_user').setValue("");
        Ext.getCmp('commitment_construction_employer_date').setValue("");
        /*设计单位*/
        Ext.getCmp('commitment_design_no').setValue("");
        Ext.getCmp('commitment_design_user').setValue("");
        Ext.getCmp('commitment_design_date').setValue("");
        /*施工单位*/
        Ext.getCmp('commitment_construction_contractor_no').setValue("");
        Ext.getCmp('commitment_construction_contractor_user').setValue("");
        Ext.getCmp('commitment_construction_contractor_date').setValue("");
        /*监理单位*/
        Ext.getCmp('commitment_supervisory_no').setValue("");
         Ext.getCmp('commitment_supervisory_user').setValue("");
        Ext.getCmp('commitment_supervisory_date').setValue("");
        /*勘察单位*/
        Ext.getCmp('commitment_survey_no').setValue("");
        Ext.getCmp('commitment_survey_user').setValue("");
        Ext.getCmp('commitment_survey_date').setValue("");
        /*图审单位*/
        Ext.getCmp('commitment_drawing_no').setValue("");
        Ext.getCmp('commitment_drawing_user').setValue("");
        Ext.getCmp('commitment_drawing_date').setValue("");

        Ext.getCmp('commitment_drawing_statusB').setValue(true);
        Ext.getCmp('commitment_supervisory_statusB').setValue(true);
        Ext.getCmp('commitment_design_statusB').setValue(true);
        Ext.getCmp('commitment_construction_employer_statusB').setValue(true);
        Ext.getCmp('authorize_drawing_statusB').setValue(true);
        Ext.getCmp('authorize_survey_statusB').setValue(true);
        Ext.getCmp('authorize_supervisory_statusB').setValue(true);
        Ext.getCmp('authorize_construction_contractor_statusB').setValue(true);
        Ext.getCmp('authorize_design_statusB').setValue(true);
        Ext.getCmp('authorize_construction_employer_statusB').setValue(true);
        Ext.getCmp('quality_statusB').setValue(true);
        Ext.getCmp('commitment_construction_contractor_statusB').setValue(true);
        Ext.getCmp('commitment_survey_statusB').setValue(true);



    },
    toPage: function(){
        /*质量监督*/
        let quality_no = Ext.getCmp('quality_no').value;
        let quality_subDate = Ext.getCmp('quality_subDate').value;
        let quality_releaseDate = Ext.getCmp('quality_releaseDate').value;
        let quality_status = Ext.getCmp('quality_status').getValue().quality_status?Ext.getCmp('quality_status').getValue():Ext.getCmp('quality_status').value;


        /*授权书*/
        /*建筑单位*/
        let authorize_construction_employer_status = Ext.getCmp('authorize_construction_employer_status').getValue().authorize_construction_employer_status?Ext.getCmp('authorize_construction_employer_status').getValue():Ext.getCmp('authorize_construction_employer_status').value;
        let authorize_construction_employer_no = Ext.getCmp('authorize_construction_employer_no').value;
        let authorize_construction_employer_user = Ext.getCmp('authorize_construction_employer_user').value;
        let authorize_construction_employer_date = Ext.getCmp('authorize_construction_employer_date').value;
        /*设计单位*/
        let authorize_design_status = Ext.getCmp('authorize_design_status').getValue().authorize_design_status?Ext.getCmp('authorize_design_status').getValue():Ext.getCmp('authorize_design_status').value;
        let authorize_design_no = Ext.getCmp('authorize_design_no').value;
        let authorize_design_user = Ext.getCmp('authorize_design_user').value;
        let authorize_design_date = Ext.getCmp('authorize_design_date').value;
        /*施工单位*/
        let authorize_construction_contractor_status = Ext.getCmp('authorize_construction_contractor_status').getValue().authorize_construction_contractor_status?Ext.getCmp('authorize_construction_contractor_status').getValue():Ext.getCmp('authorize_construction_contractor_status').value;
        let authorize_construction_contractor_no = Ext.getCmp('authorize_construction_contractor_no').value;
        let authorize_construction_contractor_user = Ext.getCmp('authorize_construction_contractor_user').value;
        let authorize_construction_contractor_date = Ext.getCmp('authorize_construction_contractor_date').value;
        /*监理单位*/
        let authorize_supervisory_status = Ext.getCmp('authorize_supervisory_status').getValue().authorize_supervisory_status?Ext.getCmp('authorize_supervisory_status').getValue():Ext.getCmp('authorize_supervisory_status').value;
        let authorize_supervisory_no = Ext.getCmp('authorize_supervisory_no').value;
        let authorize_supervisory_user = Ext.getCmp('authorize_supervisory_user').value;
        let authorize_supervisory_date = Ext.getCmp('authorize_supervisory_date').value;
        /*勘察单位*/
        let authorize_survey_status = Ext.getCmp('authorize_survey_status').getValue().authorize_survey_status?Ext.getCmp('authorize_survey_status').getValue():Ext.getCmp('authorize_survey_status').value;
        let authorize_survey_no = Ext.getCmp('authorize_survey_no').value;
        let authorize_survey_user = Ext.getCmp('authorize_survey_user').value;
        let authorize_survey_date = Ext.getCmp('authorize_survey_date').value;
        /*图审单位*/
        let authorize_drawing_status = Ext.getCmp('authorize_drawing_status').getValue().authorize_drawing_status?Ext.getCmp('authorize_drawing_status').getValue():Ext.getCmp('authorize_drawing_status').value;
        let authorize_drawing_no = Ext.getCmp('authorize_drawing_no').value;
        let authorize_drawing_user = Ext.getCmp('authorize_drawing_user').value;
        let authorize_drawing_date = Ext.getCmp('authorize_drawing_date').value;


        /*承诺书*/
        /*建筑单位*/
        let commitment_construction_employer_status = Ext.getCmp('commitment_construction_employer_status').getValue().commitment_construction_employer_status?Ext.getCmp('commitment_construction_employer_status').getValue():Ext.getCmp('commitment_construction_employer_status').value;
        let commitment_construction_employer_no = Ext.getCmp('commitment_construction_employer_no').value;
        let commitment_construction_employer_user = Ext.getCmp('commitment_construction_employer_user').value;
        let commitment_construction_employer_date = Ext.getCmp('commitment_construction_employer_date').value;
        /*设计单位*/
        let commitment_design_status = Ext.getCmp('commitment_design_status').getValue().commitment_design_status?Ext.getCmp('commitment_design_status').getValue():Ext.getCmp('commitment_design_status').value;
        let commitment_design_no = Ext.getCmp('commitment_design_no').value;
        let commitment_design_user = Ext.getCmp('commitment_design_user').value;
        let commitment_design_date = Ext.getCmp('commitment_design_date').value;
        /*施工单位*/
        let commitment_construction_contractor_status = Ext.getCmp('commitment_construction_contractor_status').getValue().commitment_construction_contractor_status?Ext.getCmp('commitment_construction_contractor_status').getValue():Ext.getCmp('commitment_construction_contractor_status').value;
        let commitment_construction_contractor_no = Ext.getCmp('commitment_construction_contractor_no').value;
        let commitment_construction_contractor_user = Ext.getCmp('commitment_construction_contractor_user').value;
        let commitment_construction_contractor_date = Ext.getCmp('commitment_construction_contractor_date').value;
        /*监理单位*/
        let commitment_supervisory_status = Ext.getCmp('commitment_supervisory_status').getValue().commitment_supervisory_status?Ext.getCmp('commitment_supervisory_status').getValue():Ext.getCmp('commitment_supervisory_status').value;
        let commitment_supervisory_no = Ext.getCmp('commitment_supervisory_no').value;
        let commitment_supervisory_user = Ext.getCmp('commitment_supervisory_user').value;
        let commitment_supervisory_date = Ext.getCmp('commitment_supervisory_date').value;
        /*勘察单位*/
        let commitment_survey_status = Ext.getCmp('commitment_survey_status').getValue().commitment_survey_status?Ext.getCmp('commitment_survey_status').getValue():Ext.getCmp('commitment_survey_status').value;
        let commitment_survey_no = Ext.getCmp('commitment_survey_no').value;
        let commitment_survey_user = Ext.getCmp('commitment_survey_user').value;
        let commitment_survey_date = Ext.getCmp('commitment_survey_date').value;
        /*图审单位*/
        let commitment_drawing_status = Ext.getCmp('commitment_drawing_status').getValue().commitment_drawing_status?Ext.getCmp('commitment_drawing_status').getValue():Ext.getCmp('commitment_drawing_status').value;
        let commitment_drawing_no = Ext.getCmp('commitment_drawing_no').value;
        let commitment_drawing_user = Ext.getCmp('commitment_drawing_user').value;
        let commitment_drawing_date = Ext.getCmp('commitment_drawing_date').value;
        let engineering_id=this.engineering_id;
        let panel =Ext.getCmp('PreliminaryApplicationProceduresPanel')
        panel.mask('正在加载数据请稍后');
        Ext.Ajax.request({
            url: '/certificateRoutes',
            method: "POST",
            async: true,  //异步调用AJAX
            params: {
                action_type: 'certificateUpdate',
                engineering_id:engineering_id,
                quality_no:quality_no,
                quality_subDate:quality_subDate,
                quality_releaseDate:quality_releaseDate,
                quality_status:quality_status,

                /*授权书*/
                /*建筑单位*/
                authorize_construction_employer_status:authorize_construction_employer_status,
                authorize_construction_employer_no:authorize_construction_employer_no,
                authorize_construction_employer_user:authorize_construction_employer_user,
                authorize_construction_employer_date:authorize_construction_employer_date,
                /*设计单位*/
                authorize_design_status:authorize_design_status,
                authorize_design_no:authorize_design_no,
                authorize_design_user:authorize_design_user,
                authorize_design_date:authorize_design_date,
                /*施工单位*/
                authorize_construction_contractor_status:authorize_construction_contractor_status,
                authorize_construction_contractor_no:authorize_construction_contractor_no,
                authorize_construction_contractor_user:authorize_construction_contractor_user,
                authorize_construction_contractor_date:authorize_construction_contractor_date,
                /*监理单位*/
                authorize_supervisory_status:authorize_supervisory_status,
                authorize_supervisory_no:authorize_supervisory_no,
                authorize_supervisory_user:authorize_supervisory_user,
                authorize_supervisory_date:authorize_supervisory_date,
                /*勘察单位*/
                authorize_survey_status:authorize_survey_status,
                authorize_survey_no:authorize_survey_no,
                authorize_survey_user:authorize_survey_user,
                authorize_survey_date:authorize_survey_date,
                /*图审单位*/
                authorize_drawing_status:authorize_drawing_status,
                authorize_drawing_no:authorize_drawing_no,
                authorize_drawing_user:authorize_drawing_user,
                authorize_drawing_date:authorize_drawing_date,
                /*承诺书*/
                /*建筑单位*/
                commitment_construction_employer_status:commitment_construction_employer_status,
                commitment_construction_employer_no:commitment_construction_employer_no,
                commitment_construction_employer_user:commitment_construction_employer_user,
                commitment_construction_employer_date:commitment_construction_employer_date,
                /*设计单位*/
                commitment_design_status:commitment_design_status,
                commitment_design_no:commitment_design_no,
                commitment_design_user:commitment_design_user,
                commitment_design_date:commitment_design_date,
                /*施工单位*/
                commitment_construction_contractor_status:commitment_construction_contractor_status,
                commitment_construction_contractor_no:commitment_construction_contractor_no,
                commitment_construction_contractor_user:commitment_construction_contractor_user,
                commitment_construction_contractor_date:commitment_construction_contractor_date,
                /*监理单位*/
                commitment_supervisory_status:commitment_supervisory_status,
                commitment_supervisory_no:commitment_supervisory_no,
                commitment_supervisory_user:commitment_supervisory_user,
                commitment_supervisory_date:commitment_supervisory_date,
                /*勘察单位*/
                commitment_survey_status:commitment_survey_status,
                commitment_survey_no:commitment_survey_no,
                commitment_survey_user:commitment_survey_user,
                commitment_survey_date:commitment_survey_date,
                /*勘察单位*/
                commitment_drawing_status:commitment_drawing_status,
                commitment_drawing_no:commitment_drawing_no,
                commitment_drawing_user:commitment_drawing_user,
                commitment_drawing_date:commitment_drawing_date
    },
            success: function (response, opts) {
                Ext.toast('成功');
                panel.unmask();
                let me=Ext.getCmp('PreliminaryApplicationProceduresPanel');
                me.show();
            },
            failure: function () {
                Ext.toast(`获取异常报警数据失败：${response.status}`);
            }  // 请求失败的回调函数
        });



    }
});